package com.guodexian.service;
import com.github.pagehelper.PageInfo;
import com.guodexian.dto.DishDto;
import com.guodexian.entity.Dish;
import com.guodexian.ex.NameException;
import org.springframework.transaction.annotation.Transactional;
/**
 * 类说明：<br>
 *
 * @author qfrx<br>
 * 2024/12/26 18:57<br>
 * @since 1.0 <br>
 */
@Transactional
public interface DishService {
    /**
     *  返回分页数据
     * @param pageNum
     * @param pageSize
     * @param shopId
     * @param dishName
     * @return
     */
    @Transactional(readOnly = true)
    PageInfo<Dish> search(Integer pageNum, Integer pageSize,int shopId,String dishName);
    public void add(Dish dish) throws NameException;
    public Dish searchById(Integer id) ;
    public void modify(DishDto dis) throws NameException;
    public void deleteById(Integer id);
    public void deleteByIds(Integer[] ids);
}
